package com.ericsson.rm.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQueries({
    @NamedQuery(name="RoleDetail.findAll",
                query="SELECT r FROM RoleDetail r"),
    @NamedQuery(name="RoleDetail.findId",
                query="SELECT r.jobStage FROM RoleDetail r where r.roleName=:roleName")
}) 
@Table(name="RP_ROLE_DETAIL")
public class RoleDetail implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="JOB_STAGE")
	private String jobStage;
	
	@Column(name="ROLE_NAME")
	private String roleName;	
	
	@Column(name="GRADE")
	private String grade;	

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getJobStage() {
		return jobStage;
	}

	public void setJobStage(String jobStage) {
		this.jobStage = jobStage;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}	

}
